Skip to content

Extending Dagster example with Type Contracts - #359

Draft
drin wants to merge 3 commits into
mainfrom
octalene.dagster-and-contracts
Draft

Extending Dagster example with Type Contracts#359
drin wants to merge 3 commits into
mainfrom
octalene.dagster-and-contracts

Conversation

@drin

@drin drin commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

This adds a version of the account_summary pipeline (learning example of bauplan with dagster) that uses type contracts. This example shows the following:

  • Adding schema definitions
    • Shows docstrings on schema classes
    • Shows TableField usage with lineage and doc
  • Add type contract annotations to models
    • All models have return type annotations (output models)
    • All input models use Read
    • Some input models use Filter
    • Some input models use pushdown projections

Additionally, a secondary commit (c633652) shows the diff if applied to the original transformation pipeline

giacomo piccinini and others added 3 commits July 20, 2026 17:14
Extend dagster example using assets instead of op/jobs
This adds a version of the `account_summary` pipeline (learning example
of bauplan with dagster) that uses type contracts. This example shows
the following:

- Adding schema definitions
  - Shows docstrings on schema classes
  - Shows TableField usage with `lineage` and `doc`
- Add type contract annotations to models
  - All models have return type annotations (output models)
  - All input models use `Read`
  - Some input models use `Filter`
  - Some input models use pushdown projections
This commit is just to visualize the before and after difference of type
contracts. This commit should be dropped before merging (or reverted if
merged), so that we can preserve a "before type contracts" and "after type
contracts" example, especially for the purposes of explaining how to migrate
once type contracts are actually released.
@drin drin self-assigned this Jul 20, 2026
@giacomopiccinini
giacomopiccinini force-pushed the giacomo/extend-dagster branch from 8945848 to 8d91cd8 Compare July 21, 2026 11:27
Base automatically changed from giacomo/extend-dagster to main July 21, 2026 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant